home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
ALOWVAL.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
53 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_ALowVal( axArray ) --> xHighVal
PARAMETERS:
axArray : array of CHAR, DATE, or NUM elements
SHORT:
Get the LOWEST value from an array of char, num, or date.
DESCRIPTION:
_ALowVal() returns the lowest value from an array of Character Strings,
Dates or Numerics.
ALL elements must be of the same type! If the array contains mixed elements,
a run-time error will occur.
If the array in not CHAR, DATE, or NUM, the return value is NIL.
NOTE:
See also:
_AHighVal() which returns the highest value.
_ALowElement() which returns the element number associated with the
lowest value.
_AHighElement() which returns the element number associated with the
highest value.
EXAMPLE:
LOCAL aArray := { 2,5,3,9,12,7 }
t = _ALowVal( aArray )
Result: t = 2
LOCAL aArray := { 'Wallace', 'Jones', 'Taylor', 'Abdul' }
t = _ALowVal( aArray )
Result: t = 'Abdul'
******************************************************************************/